<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<div class="form-group">
								<label class="col-sm-3 control-label">用户名：</label>
								<div class="col-sm-8">
									<input id="mobile" name="mobile" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">姓名：</label>
								<div class="col-sm-8">
									<input id="cnName" name="cnName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">密码：</label>
								<div class="col-sm-8">
									<input id="password" name="password" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用户类型：</label>
								<div class="col-sm-8">
									<select id="type" name="type" class="form-control" onchange="selectDept();">
                                        <option value="1">组织部用户</option>
                                        <option value="2">街道用户</option>
                                        <option value="3">社区用户</option>
                                        <option value="4">协助单位用户</option>
									</select>
								</div>
							</div>
                            <div id="deptArea">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">所属组织：</label>
                                    <div class="col-sm-8">
                                        <select id="deptId" name="deptId" class="form-control">
                                            <option th:each="dept:${depts}" th:value="${dept.id}" th:text="${dept.name}"></option>
                                        </select>
                                    </div>
                                </div>
                            </div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:src="@{/js/appjs/hbManage/user/add.js}">
	</script>
</body>
</html>
